# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Unofficial NAPI-PROJEKT clone for non-Windows systems"
HOMEPAGE="http://krzemin.iglu.cz/qnapi"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=x11-libs/qt-4.3
app-arch/p7zip"
RDEPEND="${DEPEND}"

src_compile() {
	/usr/bin/qmake || die "qmake failed"
	emake || die "emake failed"
}

src_install() {
	mv doc/manpage ${PN}.1
	doman ${PN}.1
	dobin qnapi
	dodoc doc/ChangeLog doc/README
	domenu doc/qnapi.desktop
	mv src/qnapi-48-icon.png qnapi.png
	doicon qnapi.png
}
